<?php
use app\assets\AppAsset;
use yii\helpers\Html;
use yii\helpers\Url;
AppAsset::register($this);
$this->registerCSSFile('@web/css/sq.css',['depends'=>['app\assets\AppAsset']]);
$this->registerJsFile('@web/js/top.js',['depends'=>['app\assets\AppAsset']]);
$this->registerJsFile('@web/js/bottom.js',['depends'=>['app\assets\AppAsset']]);
$this->registerCSSFile('@web/css/top.css',['depends'=>['app\assets\AppAsset']]);
$this->title="Discuss";
?>
<?php $this->beginPage(); ?>
    <!DOCTYPE html>
    <html>
    <head lang="<?= Yii::$app->language ?>">
        <meta charset="<?= Yii::$app->charset ?>">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <?= Html::csrfMetaTags() ?>
        <title><?= Html::encode($this->title) ?></title>
        <?php $this->head(); ?>
        <link rel="shortcut icon" type="image/x-icon" href="<?=Url::to('@web/images/toefllogo.ico');?>" />
    </head>
    <body>
    <?php $this->beginBody(); ?>
    <div class="top-wrap" name="top">
    <form class="ser hidden" id="sub" action="?r=communitydiscuss/search" method="post">
        <input type="hide" name="part" value="">
        <input type="hide" name="content" value="">
        <input name="_csrf" type="hidden" id="_csrf" value="<?= Yii::$app->request->csrfToken;?>">
    </form>
        <div class="nav">
            <div class="row clearfix">
                <div class="col-xs-2 logo"><a href="<?=Url::to('@web/');?>"><img src="<?=Url::to('@web/images/logo1.png');?>" alt="logo"></a></div>
                <div class="col-xs-4 spes">
                    <div class="col-xs-6 spe"><a href="<?=Url::to('@web/');?>"><p>练习</p><p>Practice</p></a></div>
                    <div class="col-xs-6 spe"><a href="<?=Url::to('@web/?r=communitydiscuss/sq');?>"><p>社区</p><p>Community</p></a></div>
                </div>
                <div class="col-xs-2 pull-right login">
                    <?php
                    $session=\Yii::$app->session;
                    if(!isset($session['user_id'])){?>
                        <div class="col-xs-6 log"><a href="#"><span>注册</span></a></div>
                        <div class="col-xs-6 log"><a href="<?=Url::to('@web/?r=site/login');?>"><span>登录</span></a></div>
                    <?php }else {?>
                        <div class="col-xs-6 log" id="userid"><a href="#" title="<?=$session['name'];?>"><span><?=$session['name'];?></span></a></div>
                        <div class="col-xs-6 log"><a href="<?=Url::to('@web/?r=site/logout');?>"><span>注销</span></a></div>
                    <?php }?>
                </div>
                <div class="search pull-right">
                    <input type="text" class="search-input" placeholder="search">
                    <i class="fa fa-search"></i>
                </div>
                <div class="selectpart pull-right" id="userselect">
                    <span class="show-user-select"></span><span id="faicon"><i class="fa fa-caret-down"></i></span>
                    <ul class="" id="sel-user-parts">
                        <li>content</li>
                        <li>writing</li>
                        <li>speaking</li>
                        <li>writer</li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <div class="morex"></div>
    <div class="content">
        <?=$content?>
    </div>
    <div class="comment-content">
        <div class="user-lead clearfix">
            <div class="user-info pull-left clearfix">
                <div class="user-id-date pull-left">
                    <span class="user-id"></span><br>
                    <span class="user-date"></span>
                </div>
            </div>
            <span id="linkit"><a href="#" target="_blank"><i class="fa  fa-mail-forward"></i>&nbsp;&nbsp;查看详情页</a></span>
            <div class="good-times pull-right" title="点赞量">
                <span><i class="fa fa-thumbs-o-up"></i>&nbsp;&nbsp;<span class="goods"></span></span>
            </div>
            <div class="view-times pull-right" title="浏览量">
                <span><i class="fa fa-play-circle"></i>&nbsp;&nbsp;<span class="views"></span></span>
            </div>
        </div>
        <div class="nowrecord hidden"><img src=<?=Url::to('@web/images/xx.jpg');?>><audio src="#"></audio>
        </div>
        <div class="user-comments hidden"></div>
        <div class="line"></div>
        <div class="view-all center-block" id="close">关闭</div>
    </div>
    <div class="footer">
        <div class="foot-con">
            <div class="dkt-logo"><img src="<?=Url::to('@web/images/dkt.png');?>"></div>
            <div class="foot-link center-block">
                <ul class="list-unstyled clearfix">
                    <li class="pull-left"><a href="#">联系我们&nbsp;&nbsp;|</li>
                    <li class="pull-left"><a href="#">&nbsp;&nbsp;老师入驻&nbsp;&nbsp;|</a></li>
                    <li class="pull-left"><a href="#">&nbsp;&nbsp;人才招聘&nbsp;&nbsp;|</a></li>
                    <li class="pull-left"><a href="#">&nbsp;&nbsp;友情链接&nbsp;&nbsp;|</a></li>
                    <li class="pull-left"><a href="#">&nbsp;&nbsp;隐私条款&nbsp;&nbsp;|</a></li>
                    <li class="pull-left"><a href="#">&nbsp;&nbsp;高校免费直播平台&nbsp;&nbsp;|</a></li>
                    <li class="pull-left"><a href="#">&nbsp;&nbsp;手机点课台</a></li>
                </ul>
            </div>
            <div class="copyright center-bolck">
                <a href="#">Copyright © 2015 张艳英语 - 点课台 粤ICP备15052090号</a>
            </div>
        </div>
    </div>
    <?php $this->endBody(); ?>
    </body>
    </html>
<?php $this->endPage(); ?>